﻿namespace EFS.RC.CC.Tools.AVR
{
	internal class Questionare : EFS.RC.CC.Tools.AVR.AStepByStep
	{
				/// <summary>
		/// Constructor
		/// </summary>
		/// <param name="officeServiceSessionParticipant"></param>
		/// <param name="steps"></param>
		public Questionare(EFS.RC.CC.Sessions.OfficeService.IParticipant officeServiceSessionParticipant) : 
			base (officeServiceSessionParticipant, new EFS.RC.CC.Tools.AVR.AStepByStep.Step[] {
				new EFS.RC.CC.Tools.AVR.AStepByStep.Step() {PlayFileName = "Resources\\Questionare\\Introduction.wma", WaitTone = false},
				new EFS.RC.CC.Tools.AVR.AStepByStep.Step() {PlayFileName = "Resources\\Questionare\\First.wma", WaitTone = true},
				new EFS.RC.CC.Tools.AVR.AStepByStep.Step() {PlayFileName = "Resources\\Questionare\\second.wma", WaitTone = true},
				new EFS.RC.CC.Tools.AVR.AStepByStep.Step() {PlayFileName = "Resources\\Questionare\\third.wma", WaitTone = true},
				new EFS.RC.CC.Tools.AVR.AStepByStep.Step() {PlayFileName = "Resources\\Questionare\\Conclusion.wma", WaitTone = false}
			})
		{
		}
		/// <summary>
		/// Step completed
		/// </summary>
		/// <param name="currentStepIndex"></param>
		/// <param name="tone"></param>
		/// <returns></returns>
		protected override System.Boolean ChechReceivedTone(System.Int32 currentStepIndex, System.Int32? tone)
		{
			// go one
			return tone > 0 && tone < 6;
		}
	}
}
